

IFNDEF PORTABLE_CPC_MATH
    INCLUDE "target/cpc/def/cpcfirm.def"
    INCLUDE "target/cpc/def/cpcfp.def"

    MACRO FPCALL func
    call    firmware
    defw    func
    ENDM
ELSE
    EXTERN CPCFP_FLO_ATAN
    EXTERN CPCFP_FLO_COS
    EXTERN CPCFP_FLO_ADD
    EXTERN CPCFP_FLO_DIV
    EXTERN CPCFP_FLO_DEG_RAD
    EXTERN CPCFP_FLO_CMP
    EXTERN CPCFP_FLO_MUL
    EXTERN CPCFP_FLO_CMP
    EXTERN CPCFP_FLO_REV_SUB
    EXTERN CPCFP_FLO_EXP
    EXTERN CPCFP_BIN_2_FLO
    EXTERN CPCFP_FLO_BINFIX
    EXTERN CPCFP_FLO_RND
    EXTERN CPCFP_FLO_BINFIX2
    EXTERN CPCFP_FLO_LOG
    EXTERN CPCFP_FLO_LOG10
    EXTERN CPCFP_FLO_INV_SGN
    EXTERN CPCFP_FLO_POW
    EXTERN CPCFP_FLO_SIN
    EXTERN CPCFP_FLO_SQRT
    EXTERN CPCFP_FLO_TAN

    MACRO FPCALL func
    call    func
    ENDM

ENDIF